using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class SubjectConfiguration  : Base.BaseEntityConfiguration<Subject>
    {

        public override void Configure(EntityTypeBuilder<Subject> builder)
        {
            base.Configure(builder);

                
            builder.ToTable("subject");

            builder.Property(x=>x.SubjectName).HasColumnName("subject_name").HasMaxLength(200000).HasColumnOrder(1);
            builder.Property(x=>x.TeacherId).HasColumnName("teacher_id").HasMaxLength(200000).HasColumnOrder(2);
       

        }

    }
}